<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : EliminarRol
    Created on : 9/11/2008, 10:16:36 PM
    Author     : JULI
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page binding="#{Administracion$GestionRoles.page1}" id="page1">
            <webuijsf:html binding="#{Administracion$GestionRoles.html1}" id="html1">
                <webuijsf:head binding="#{Administracion$GestionRoles.head1}" id="head1">
                    <webuijsf:link binding="#{Administracion$GestionRoles.link1}" id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body binding="#{Administracion$GestionRoles.body1}" id="body1" style="-rave-layout: grid">
                    <webuijsf:form binding="#{Administracion$GestionRoles.form1}" id="form1">
                        <div style="">
                            <jsp:directive.include file="../Superior.jspf"/>
                        </div>
                        <div id="contenedor" style="left: 192px; top: 120px; position: absolute">
                            <webuijsf:panelGroup binding="#{Administracion$GestionRoles.groupPanel1}" id="groupPanel1" style="left: 0px; top: 0px; position: absolute">
                                <webuijsf:tabSet binding="#{Administracion$GestionRoles.tabSet1}" id="tabSet1" selected="tab1" style="height: 551px; left: 80px; top: 0px; position: absolute; width: 621px">
                                    <webuijsf:tab actionExpression="#{Administracion$GestionRoles.tab1_action}" binding="#{Administracion$GestionRoles.tab1}"
                                        id="tab1" text="ADMINISTRACIÓN DE ROLES">
                                        <webuijsf:panelLayout binding="#{Administracion$GestionRoles.layoutPanel1}" id="layoutPanel1" style="background-color: rgb(255, 255, 255); height: 612px; position: relative; width: 744px; -rave-layout: grid">
                                            <h:messages binding="#{Administracion$GestionRoles.messageList1}" errorClass="errorMessage"
                                                errorStyle="border: 1px solid rgb(204, 0, 0); background-color: rgb(241, 204, 255); color: rgb(204, 0, 0); font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: normal; height: 25px; vertical-align: middle; width: 621px"
                                                fatalClass="fatalMessage" id="messageList1" infoClass="infoMessage"
                                                infoStyle="border: 1px solid rgb(0, 51, 153); background-color: rgb(204, 204, 255); color: rgb(0, 0, 153); font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: normal; height: 25px; width: 621px" warnClass="warnMessage"/>
                                            <h:panelGrid binding="#{Administracion$GestionRoles.gridPanelPrincipal}" id="gridPanelPrincipal">
                                                <h:panelGrid binding="#{Administracion$GestionRoles.gridPanelBotones}" columns="2" id="gridPanelBotones"
                                                    style="height: 100%" width="599">
                                                    <webuijsf:button actionExpression="#{Administracion$GestionRoles.buttonInsertarRol_action}"
                                                        binding="#{Administracion$GestionRoles.buttonInsertarRol}" id="buttonInsertarRol"
                                                        style="height: 21px; width: 167px" styleClass="boton labels_titulo texto" text="INSERTAR NUEVO ROL"/>
                                                    <webuijsf:button actionExpression="#{Administracion$GestionRoles.buttonVolver_action}" id="buttonVolver1"
                                                        style="height: 23px; width: 95px" styleClass="boton labels_titulo texto" text="VOLVER"/>
                                                </h:panelGrid>
                                                <h:panelGrid binding="#{Administracion$GestionRoles.gridPanelListaRoles}" id="gridPanelListaRoles" width="599">
                                                    <webuijsf:table augmentTitle="false" binding="#{Administracion$GestionRoles.tableListaRoles}"
                                                        id="tableListaRoles" title="LISTADO DE ROLES" width="621">
                                                        <webuijsf:tableRowGroup align="center" binding="#{Administracion$GestionRoles.tableRowGroup1}"
                                                            id="tableRowGroup1" rows="5" sourceData="#{SessionBean1.listaDatosCasoUso}" sourceVar="currentRow">
                                                            <webuijsf:tableColumn binding="#{Administracion$GestionRoles.tableColumn4}" headerText="idRol"
                                                                id="tableColumn4" sort="idRol" visible="false">
                                                                <webuijsf:staticText binding="#{Administracion$GestionRoles.staticTextidRol}"
                                                                    id="staticTextidRol" text="#{currentRow.value['idRol']}"/>
                                                            </webuijsf:tableColumn>
                                                            <webuijsf:tableColumn headerText="column4" id="tableColumn1" visible="false" width="200">
                                                                <webuijsf:staticText id="staticText1" text="#{currentRow.value['rolSistema']}"/>
                                                            </webuijsf:tableColumn>
                                                            <webuijsf:tableColumn align="center" binding="#{Administracion$GestionRoles.tableColumn5}"
                                                                headerText="NOMBRE ROL" id="tableColumn5" sort="nombreRol" style="width: 260px">
                                                                <webuijsf:staticText binding="#{Administracion$GestionRoles.staticText5}" id="staticText5" text="#{currentRow.value['nombreRol']}"/>
                                                            </webuijsf:tableColumn>
                                                            <webuijsf:tableColumn align="center" headerText="Usuarios Asignados al Rol" id="tableColumn3" width="20">
                                                                <webuijsf:staticText id="staticText2" text="#{currentRow.value['cantUsuarioRol']}"/>
                                                            </webuijsf:tableColumn>
                                                            <webuijsf:tableColumn align="center" binding="#{Administracion$GestionRoles.tableColumn2}"
                                                                id="tableColumn2" width="300">
                                                                <webuijsf:button actionExpression="#{Administracion$GestionRoles.buttonModificar_action}"
                                                                    binding="#{Administracion$GestionRoles.buttonModificar}" id="buttonModificar"
                                                                    style="height: 21px; width: 95px" styleClass="boton labels_titulo texto" text="MODIFICAR" visible="#{currentRow.value['rolSistema']=='N'}"/>
                                                                <webuijsf:button actionExpression="#{Administracion$GestionRoles.buttonEliminar_action}"
                                                                    binding="#{Administracion$GestionRoles.buttonEliminar}" id="buttonEliminar"
                                                                    onClick="if (#{currentRow.value['cantUsuarioRol'] &gt; '0'}){&#xd;&#xa;    alert('Existen Usuario(s) con este Rol Asignado');&#xd;&#xa;}&#xd;&#xa;if (!confirm(&quot;¿Desea eliminar el Rol &quot; + &quot;#{currentRow.value['nombreRol']}&quot; + &quot;?&quot;)) return false;"
                                                                    style="height: 21px; width: 95px" styleClass="boton labels_titulo texto" text="ELIMINAR" visible="#{currentRow.value['rolSistema']=='N'}"/>
                                                            </webuijsf:tableColumn>
                                                        </webuijsf:tableRowGroup>
                                                    </webuijsf:table>
                                                </h:panelGrid>
                                            </h:panelGrid>
                                        </webuijsf:panelLayout>
                                    </webuijsf:tab>
                                </webuijsf:tabSet>
                            </webuijsf:panelGroup>
                        </div>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
